package com.lcj.eduCenter;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @Author：LCJ
 * @Description：
 * @Date：Create in 10:59 2021/3/23 0023
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.lcj"})
@MapperScan("com.lcj.eduCenter.mapper")
@EnableDiscoveryClient
@EnableFeignClients
public class CenterApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(CenterApplication.class);
    }
    public static void main(String[] args) {
        SpringApplication.run(CenterApplication.class,args);
    }
}
